package com.yong.android.framework.view.adapter;

import android.database.Observable;

/**
 * Description:
 * Created by Andy Hong on 3/2/2017.
 */

public class AdapterDataObservable extends Observable<AdapterDataObserver> {

    public void notifyChanged() {
        for (int i = mObservers.size() - 1; i >= 0; i--) {
            mObservers.get(i).onChanged();
        }
    }

//    public void notifyItemRangeChanged(int positionStart, int itemCount) {
//        for (int i = mObservers.size() - 1; i >= 0; i--) {
//            mObservers.get(i).onItemRangeChanged(positionStart, itemCount);
//        }
//    }

//    public void notifyItemRangeInserted(int positionStart, int itemCount) {
//        for (int i = mObservers.size() - 1; i >= 0; i--) {
//            mObservers.get(i).onItemRangeInserted(positionStart, itemCount);
//        }
//    }
//    public void notifyItemRangeRemoved(int positionStart, int itemCount) {
//
//        for (int i = mObservers.size() - 1; i >= 0; i--) {
//            mObservers.get(i).onItemRangeRemoved(positionStart, itemCount);
//        }
//    }


}
